<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--JSTL标签库--%>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>员工注册</title>
    <style>
        body {
            background-image: url("./img/water.jpg");
            background-size: cover;
        }

    </style>
    <!-- 1. 导入CSS的全局样式 -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <!-- 2. jQuery导入，建议使用1.9以上的版本 -->
    <script src="js/jquery-2.1.0.min.js"></script>
    <!-- 3. 导入bootstrap的js文件 -->
    <script src="js/bootstrap.min.js"></script>
</head>

<body>
<div class="container" style="width: 400px;" align="center">
    <h3 style="text-align: center;">客户注册</h3>
    <form action="${pageContext.request.contextPath}/registUser" method="post">
        <%--隐藏域保存id=NULL--%>
        <input type="hidden" name="userId" value="null">

        <div class="form-group">
        <label for="name">姓名：</label>
        <input type="text" id="name" class="form-control" name="name" placeholder="请输入姓名">
         </div>
         <div class="form-group">
        <label for="password">密码：</label>
        <input type="password" id="password" class="form-control" name="password" placeholder="请输入密码">
         </div>
         <div class="form-group">
        <label for="phone">手机号：</label>
        <input type="text" id="phone" class="form-control" name="phone" placeholder="请输入电话">
         </div>
        <div class="form-group">
        <label for="address">家庭地址：</label>
        <input type="text" id="address"  class="form-control" name="address" placeholder="请输入地址">
        </div>

        <input type="hidden" name="grade" value="2">

        <input type="submit" value="注册">
        <input class="btn btn-default" id="button" type="button" value="返回"/>
    </form>
</div>
</body>
<script>
    $("#button").click(function () {
        location.href= "${pageContext.request.contextPath}/LoginUser.jsp";
    })
</script>
</html>